package Mysql;

import org.apache.hadoop.io.WritableComparable;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * mysql输入的value类型
 */
public abstract class MysqlInputValueWritable implements WritableComparable {
    /**
     * 从数据库返回链接中读取字段信息
     * @param rs
     * @throws SQLException
     */
    public void readFieldsFromResult(ResultSet rs) throws SQLException{

    }

    public int compareTo(Object o) {
        return 0;
    }

    public void write(DataOutput dataOutput) throws IOException {

    }

    public void readFields(DataInput dataInput) throws IOException {

    }
}
